package com.yxw.live_vod_boot.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
@ApiModel(value = "VodLikeAndCollectVo", description = "视频点赞和收藏信息VO")
public class VodLikeAndCollectVo {

    @ApiModelProperty("点赞/收藏用户ID")
    private Long userId;

    @ApiModelProperty("点赞/收藏用户名称")
    private String userName;

    @ApiModelProperty("头像")
    private String headUrl;

    @ApiModelProperty("视频ID")
    private Long videoId;

    @ApiModelProperty("视频名称")
    private String videoName;

    @ApiModelProperty("视频封面")
    private String coverUrl;

    @ApiModelProperty("1:点赞 2：收藏")
    private Integer type;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    @ApiModelProperty("点赞/收藏时间")
    private Date createTime;
}
